<?php
//Leaps Cache @ 2015-03-04 17:06:16
defined('LEAPS_VERSION') or exit('No permission resources.');
error_reporting ( E_ERROR );
$Head = S('common/common');
$CSS_PATH = SKIN_PATH.'default/css/';
$IMG_PATH = SKIN_PATH.'default/images/';
$JS_PATH = SKIN_PATH.'default/js/';
?>
<div class="content vote">
<form name="myform" id="myform"  action="<?php echo defined('SITE_URL') ? SITE_URL : '';?>index.php?app=vote&action=post&subjectid=<?php echo  isset($subjectid) ? $subjectid : '';?>" method="post" target="_blank">
<h4><?php echo  isset($subject) ? $subject : '';?></h4>
<div class="hr bk6"><hr></div>
<input type="hidden" name="subjectid" value="<?php echo  isset($subjectid) ? $subjectid : '';?>">
<?php $n=1;if(is_array($options)) foreach($options AS $r) { ?>
<?php $i++; ?>
<?php if($vote_data['total']==0 ) { ?>
<?php $per=0;?>
<?php } else { ?>
<?php $per=intval($vote_data[$r['optionid']]/$vote_data['total']*100);?>
<?php } ?>
<label><input type=<?php if($ischeckbox=='0') { ?>"radio"<?php } else { ?>"checkbox"<?php } ?> name="radio[]" id="radio" value="<?php echo $r['optionid'];?>" <?php echo  isset($check_status) ? $check_status : '';?>/><?php echo $r['option'];?></label>
<?php if(isset($n))$n++;} if(isset($n))unset($n); ?>
<div class="btn" style="<?php echo  isset($display) ? $display : '';?>"><input type="submit" value="提交"></div><a href="<?php echo defined('SITE_URL') ? SITE_URL : '';?>index.php?app=vote&action=result&subjectid=<?php echo  isset($subjectid) ? $subjectid : '';?>">[查看结果]</a>
</form>
</div>